package org.acooly.secretbox.service.domain;

import java.util.Date;
import java.util.Map;

public class FileObject {

	public static final int TYPE_FILE = 0;
	public static final int TYPE_FOLDER = 1;
	public static final int TYPE_BACK = 2;

	private String id;
	private String name;
	private String path;
	/** 对象类型 文件(0)或文件夹(1) */
	private int type = TYPE_FILE;
	private long length = 0;
	private Date createTime;
	private Date lastModifyTime;
	private int status;
	private String contentType;
	private String etag;
	private Map<String, String> metadata;

	public FileObject() {
		super();
		// TODO Auto-generated constructor stub
	}

	public FileObject(int type) {
		super();
		this.type = type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public long getLength() {
		return length;
	}

	public void setLength(long length) {
		this.length = length;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public Map<String, String> getMetadata() {
		return metadata;
	}

	public void setMetadata(Map<String, String> metadata) {
		this.metadata = metadata;
	}

	public String getEtag() {
		return etag;
	}

	public void setEtag(String etag) {
		this.etag = etag;
	}

}
